package com.banmao.mall.service.admin;

import com.banmao.mall.model.bo.admin.advertising.AdCreatBO;
import com.banmao.mall.model.pojo.Ad;
import com.banmao.mall.model.pojo.Coupon;
import com.banmao.mall.model.pojo.Topic;
import com.banmao.mall.model.vo.admin.promote.advertising.AdCreateVO;
import com.banmao.mall.model.vo.admin.promote.advertising.AdListVO;
import com.banmao.mall.model.vo.admin.promote.coupons.CouponListUserVO;
import com.banmao.mall.model.vo.admin.promote.coupons.CouponListVO;
import com.banmao.mall.model.vo.admin.promote.topic.TopicCreateVO;
import com.banmao.mall.model.vo.admin.promote.topic.TopicListVO;

public interface AdService {
    AdListVO selectAdlist(Integer page, Integer limit, String sort, String order,String name,String content);

    AdCreateVO adCreate(AdCreatBO adCreatBO);

    int updateAd(Ad ad);

    int delete(Ad ad);

    CouponListVO couponList(Integer page, Integer limit, String sort, String order, String name, Integer type, Integer status);


    Coupon couponCreate(Coupon coupon);

    Coupon couponUpdate(Coupon coupon);

    void couponDelete(Coupon coupon);

    Coupon readDetailById(int id);

    TopicListVO selectTopicList(Integer page, Integer limit, String sort, String order, String title, String subtitle);

    Topic creatTopic(Topic topic);

    int updateTopic(Topic topic);

    int deleteTopic(Topic topic);

    CouponListUserVO getCouponList(Integer page, Integer limit, Integer couponId, Integer userId, String status, String sort, String order);

}
